

import request from '../utils/request'

/**
 *后边的每次请求都是需要携带token的
 */
export const findUserList= (current,size,userVO) => {
  return request({
    url: "/user/findUserPage",
    method: 'post',
    params:{
      current,
      size
    },
    data: userVO
  })
}

/**
 *增加用户
 */
export const saveUser = (user) => {
  return request({
    url: "/user/addUser",
    method: 'post',
    data: user
  })
}

/**
 *删除oss中的图片
 */
export const deleteImgFile = (file) => {
  return request({
    url: "/deleteImgFile",
    method: 'post',
    params:{
      file
    }
  })
}

/**
 * 导出用户Excel
 * @param userVo
 */
export function exportUserInfo(userVo) {
  return request({
    url: '/user/export',
    method: 'post',
    data: userVo,
    responseType: "blob"
  })
}
